import { RouteRecordRaw } from 'vue-router';

import Layout from '@/layout/index.vue';

const routes = <RouteRecordRaw[]>[
    {
        path: '/',
        component: Layout,
        children: [
            // { path: '', component: () => import('@/pages/home/index.vue') },
            { path: '', component: () => import('@/pages/detail/index.vue'), },
        ],
    },

    // Always leave this as last one,
    // but you can also remove it
    {
        path: '/:catchAll(.*)*',
        // component: () => import('@/pages/home/index.vue'),
        component: () => import('@/pages/detail/index.vue'),
        // component: () => import('@/pages/ErrorNotFound.vue'),
    },
];

export default routes;
